<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\grid\GridView;
use yii\helpers\Url;
$this->title = '单页面';
?>
<link rel="stylesheet" href="/static/css/single.css" />
<div class="microoh-main" style="padding-top:0px;">
  
	<div class="container">
		<div class="zy_top_nav font14">
            <a href="http://www.bwphp.com/">首页</a>  &gt;  单页面
        </div>
        <div id="tab">
        	
	        <div id="left-bar">
				<ul>
					<?php if ($data) { ?>
						<?php foreach ($data as $key => $val) { ?>
							<a href="#"><li class="buttom-border sin" type="<?php echo $key?>"><span class="cn"><?= Html::encode($val['page_title']) ?></span><!-- <span class="en">About us</span> --></li></a>

					<!-- <a href="http://www.maiziedu.com/common/join"><li class="buttom-border"><span class="cn">加入我们</span><span class="en">Join us</span></li></a>
					<a href="http://www.maiziedu.com/common/contact"><li class="buttom-border"><span class="cn">联系我们</span><span class="en">Contacts</span></li></a>
					                    <a href="http://www.maiziedu.com/group/common/feedback/"><li><span class="cn">意见反馈</span><span class="en">Feedback</span></li></a> -->
					    <?php }?>
                    <?php }?>
				</ul>
			</div>
			<?php foreach ($data as $key => $val) { ?>
				<div class="tabCon sin<?php echo $key ?>"style="float: right; width: 880;display:none">
						<h2><?= Html::encode($val['page_title']) ?></h2>
						<?php echo $val['page_text'] ?>
			    </div>
		    <?php }?>

			  <!-- <div class="tabCon">
			  					<div class="cur" id="p1">
			  						<h2>关于我们</h2>
			  						<span class="line">
			  
			                              这里是内容
			  							<h3>咖啡dou教育</h3>
			  							<h3>教育理念</h3>
			  							<p>力量与热情</p>
			  							<p>我们从不说空话，专注于IT在线教育，脱离传统教育的束缚，让你走哪学哪，想学就学。逗比的老师，贴心的助教，在这儿你能感受到来自五</p>
			  							<p>湖四海伙伴们热情和踏实的学习态度！</p>
			  						</span>
			  						
			  					</div>
			  
			  </div> -->
		  </div>
		  <div style="clear:both;"></div>
		  <div class="footers" style="margin-bottom:50px;"></div>
    </div>
</div>
<script>
	$(document).ready(function(){
		$(".sin"+<?php echo $sinval; ?>).show();
	});
	$(document).on('click','.sin',function(){
		var val = $(this).attr('type')
		$(".tabCon").hide();
		$(".sin"+val).show();
	})
</script>